Pokemon = {}

function Pokemon.skills(in_skills)

  local out_skills = Logic.hero_lu_var("fam_skills")
  if in_skills then
    Logic.hero_lu_var("fam_skills",handler_fam_flatten_skills(in_skills))
  end
  return handler_fam_unflatten_skills(out_skills)
  
end

function Pokemon.skill_param(skill,rank,nonum)

  local params = {}
  
  for i=1,6 do
    params[i] = text_dec(Game.Config("familiar_beh/skills/"..skill.."/param"..i),rank)
    if not nonum then params[i] = tonumber(params[i]) end
  end

  return unpack (params)
  
end
